package com.yym.util;

public class ServiceUtil {

	public static String getHosts() {

		StringBuffer sb = new StringBuffer();
		sb.append("##############################\n\r");
		sb.append("1:	operate 192.168.1.236\n\r");
		sb.append("2:	operate 192.168.1.238\n\r");
		sb.append("##############################\n\r");
		sb.append("please choose:");
		return sb.toString();
	}

	public static String getServices(String host) {
		StringBuffer sb = new StringBuffer();
		sb.append("##############"+host+"################\n\n");
		sb.append("1:	operate tomcat-solr\n");
		sb.append("2:	operate tomcat-nexus\n");
		sb.append("##############################\n");
		sb.append("please choose:");
		return sb.toString();
	}
	
	public static String getOperations(String host,String service){
		
		StringBuffer sb = new StringBuffer();
		sb.append("##############"+host+":"+service+"################\n\n");
		sb.append("1:	operate restart\n");
		sb.append("2:	operate shutdown\n");
		sb.append("##############################\n");
		sb.append("please choose:");
		return sb.toString();
	}
}
